<%= turbo_frame_tag :resource_form, target: "_top" do %>
  <%= render component("ui/modal").new(title: t(".title")) do |modal| %>
    <%= solidus_form_for @tax_category, url: form_url, html: { id: form_id } do |f| %>
      <div class="flex flex-col gap-6 pb-4">
        <%= f.text_field(:name) %>
        <%= f.text_field(:tax_code) %>
        <%= f.text_field(:description) %>
        <%= f.checkbox(:is_default, hint: t(".hints.is_default")) %>
      </div>
      <% modal.with_actions do %>
        <form method="dialog">
          <%= render component("ui/button").new(scheme: :secondary, text: t('.cancel')) %>
        </form>
        <%= f.submit %>
      <% end %>
    <% end %>
  <% end %>
<% end %>
